#include "ODSLogger.h"

#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdio.h>

void ODSLogger::log ( Level level, const char * log )
{
	char buf[1024];
	sprintf_s(buf, 1024, "%d - %s\n", (int)level, log );
	OutputDebugString ( buf );
}


void ODSLogger::log ( Level level, const char * log, int err )
{
	char buf[1024];
	sprintf_s(buf, 1024, "%d - %s (%d)\n", (int)level, log, err );
	OutputDebugString ( buf );
}